﻿using Glue.Converters;
using Xunit;

namespace GlueTests.BaseConverterTests
{
    public class When_TowardsObject_is_null
    {
        private readonly IConverter converter;


        public When_TowardsObject_is_null()
        {
            converter = new TestConverterBetweenStringAndInt();
        }
        [Fact]
        public void Should_not_throw_GlueException_when_only_TowardsObject_is_null()
        {
            Assert.Equal("1", converter.Map(1, null));
        }

        [Fact]
        public void Should_not_throw_GlueException_when_only_TowardsObject_is_null_reverse()
        {
            Assert.Equal(1, converter.Map("1", null));
        }

    }
}
